<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Docs For Class Smithy_Loader</title>
	<link rel="stylesheet" type="text/css" href="../media/style.css">
	<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
</head>
<body>

<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
  <tr>
	<td class="header-top-left"><img src="../media/logo.png" border="0" alt="phpDocumentor " /></td>
    <td class="header-top-right">Smithy<br /><div class="header-top-right-subpackage"></div></td>
  </tr>
  <tr><td colspan="2" class="header-line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
  <tr>
    <td colspan="2" class="header-menu">
      
                                      
                                                                                            		[ <a href="../classtrees_Smithy.html" class="menu">class tree: Smithy</a> ]
		[ <a href="../elementindex_Smithy.html" class="menu">index: Smithy</a> ]
            [ <a href="../elementindex.html" class="menu">all elements</a> ]
    </td>
  </tr>
  <tr><td colspan="2" class="header-line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="195" class="menu">
		<div class="package-title">Smithy</div>
      <b>Packages:</b><br />
  <div class="package">
              <a href="../li_default.html">default</a><br />
              <a href="../li_Smithy.html">Smithy</a><br />
              <a href="../li_Smithy_Db.html">Smithy_Db</a><br />
              <a href="../li_Smithy_Form.html">Smithy_Form</a><br />
              <a href="../li_Smithy_Model.html">Smithy_Model</a><br />
              <a href="../li_Smithy_Plugin.html">Smithy_Plugin</a><br />
              <a href="../li_Smithy_View.html">Smithy_View</a><br />
      	</div>
      <br />
                        <b>Files:</b><br />
        <div class="package">
				<span style="padding-left: 1em;"><a href="../Smithy/_Loader.php.html">Loader.php</a></span><br />
	  </div>
            <br />
                  <b>Classes:</b><br />
        <div class="package">
		    		<a href="../Smithy/Smithy_Loader.html">Smithy_Loader</a>    	 <br />
	  </div>
                </td>
    <td>
      <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">

<h1>Class: Smithy_Loader</h1>
Source Location: /Loader.php<br /><br />

<h2 class="class-name">Class Smithy_Loader</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Class Overview</div>
	<div class="nav-bar">
					<span class="disabled">Class Overview</span>
						
											| <a href="#sec-var-summary">Property Summary</a> | <a href="#sec-vars">Properties Detail</a>
														| <a href="#sec-method-summary">Method Summary</a> | <a href="#sec-methods">Methods Detail</a>
								</div>
	<div class="info-box-body">
		<table width="100%" border="0">
		<tr><td valign="top" width="60%" class="class-overview">

        		<p align="center" class="short-description"><strong>Smithy_Loader
</strong></p>

		<p class="notes">
			Located in <a class="field" href="_Loader.php.html">/Loader.php</a> [<span class="field">line <a href="../__filesource/fsource_Smithy__Loader.php.html#a22">22</a></span>]
		</p>

		
		<pre>Zend_Loader
   |
   --Smithy_Loader</pre>

		
				<strong>Author(s):</strong>
		<ul>
		  			 			 <li>Tamás Kovács &lt;<a href="mailto:kovacs.tamas.hun@gmail.com">kovacs.tamas.hun@gmail.com</a>&gt;</li>
			 		  			 		  			 		  			 		  		</ul>
		
		<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />

<strong>Information Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
				<tr><td><strong>Version:</strong>&nbsp;&nbsp;</td><td>1.0</td></tr>
				<tr><td><strong>Copyright:</strong>&nbsp;&nbsp;</td><td>Tamás Kovács &lt;kovacs.tamas.hun@gmail.com&gt;</td></tr>
	</table>
		</td>

				<td valign="top" width="20%" class="class-overview">
		<p align="center" class="short-description"><strong><a href="#sec_vars">Properties</a></strong></p>
		<ul>
		  		  <li><a href="../Smithy/Smithy_Loader.html#var$_applicationPrefix">$_applicationPrefix</a></li>
		  		  <li><a href="../Smithy/Smithy_Loader.html#var$_pluginloader">$_pluginloader</a></li>
		  		</ul>
		</td>
		
				<td valign="top" width="20%" class="class-overview">
		<p align="center" class="short-description"><strong><a href="#sec_methods">Methods</a></strong></p>
		<ul>
		  		  <li><a href="../Smithy/Smithy_Loader.html#methodautoload">autoload</a></li>
		  		  <li><a href="../Smithy/Smithy_Loader.html#methodloadClass">loadClass</a></li>
		  		  <li><a href="../Smithy/Smithy_Loader.html#methodloadResource">loadResource</a></li>
		  		  <li><a href="../Smithy/Smithy_Loader.html#methodsetApplicationPrefix">setApplicationPrefix</a></li>
		  		  <li><a href="../Smithy/Smithy_Loader.html#method_getCurrentPrefix">_getCurrentPrefix</a></li>
		  		  <li><a href="../Smithy/Smithy_Loader.html#method_getPluginLoader">_getPluginLoader</a></li>
		  		</ul>
		</td>
		
		</tr></table>
		<div class="top">[ <a href="#top">Top</a> ]</div>
	</div>
</div>




	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Property Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Class Overview</a>
									| <span class="disabled">Property Summary</span> | <a href="#sec-vars">Properties Detail</a>
												| <a href="#sec-method-summary">Method Summary</a> | <a href="#sec-methods">Methods Detail</a>
							    				</div>
		<div class="info-box-body">
			<div class="var-summary">
			<table border="0" cellspacing="0" cellpadding="0" class="var-summary">
										<div class="var-title">
					<tr><td class="var-title">static <span class="var-type-summary">mixed</span>&nbsp;&nbsp;</td>
					<td class="var-title"><a href="#$_applicationPrefix" title="details" class="var-name-summary">$_applicationPrefix</a>&nbsp;&nbsp;</td>
					<td class="var-summary-description">The applications prefix.</td></tr>
				</div>
													<div class="var-title">
					<tr><td class="var-title">static <span class="var-type-summary">Zend_Loader_PluginLoader</span>&nbsp;&nbsp;</td>
					<td class="var-title"><a href="#$_pluginloader" title="details" class="var-name-summary">$_pluginloader</a>&nbsp;&nbsp;</td>
					<td class="var-summary-description"></td></tr>
				</div>
																									</table>
			</div>
			<br /><div class="top">[ <a href="#top">Top</a> ]</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Class Overview</a>
																		| <a href="#sec-var-summary">Property Summary</a> | <a href="#sec-vars">Properties Detail</a>
							    					| <span class="disabled">Method Summary</span> | <a href="#sec-methods">Methods Detail</a>
		</div>
		<div class="info-box-body">
			<div class="method-summary">
				<table border="0" cellspacing="0" cellpadding="0" class="method-summary">
												<div class="method-definition">
					<tr><td class="method-definition">static
											<span class="method-result">void</span>&nbsp;&nbsp;
					</td>
					<td class="method-definition"><a href="#autoload" title="details" class="method-name">autoload</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Smithy_Loader::autoload()</td></tr>
				</div>
																<div class="method-definition">
					<tr><td class="method-definition">static
											<span class="method-result">void</span>&nbsp;&nbsp;
					</td>
					<td class="method-definition"><a href="#loadClass" title="details" class="method-name">loadClass</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Smithy_Loader::loadClass()</td></tr>
				</div>
																<div class="method-definition">
					<tr><td class="method-definition">static
											<span class="method-result">string</span>&nbsp;&nbsp;
					</td>
					<td class="method-definition"><a href="#loadResource" title="details" class="method-name">loadResource</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Loads a model resource.</td></tr>
				</div>
																<div class="method-definition">
					<tr><td class="method-definition">static
											<span class="method-result">void</span>&nbsp;&nbsp;
					</td>
					<td class="method-definition"><a href="#setApplicationPrefix" title="details" class="method-name">setApplicationPrefix</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Sets the application wide prefix.</td></tr>
				</div>
																<div class="method-definition">
					<tr><td class="method-definition">static
											<span class="method-result">string</span>&nbsp;&nbsp;
					</td>
					<td class="method-definition"><a href="#_getCurrentPrefix" title="details" class="method-name">_getCurrentPrefix</a>()&nbsp;&nbsp;</td>
					<td class="method-definition"></td></tr>
				</div>
																<div class="method-definition">
					<tr><td class="method-definition">static
											<span class="method-result">Zend_Loader_PluginLoader</span>&nbsp;&nbsp;
					</td>
					<td class="method-definition"><a href="#_getPluginLoader" title="details" class="method-name">_getPluginLoader</a>()&nbsp;&nbsp;</td>
					<td class="method-definition">Returns with the pluginloader, with the apropiate prefixes and paths.</td></tr>
				</div>
																																																																</table>
			</div>
			<br /><div class="top">[ <a href="#top">Top</a> ]</div>
		</div>
	</div>

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Properties</div>
		<div class="nav-bar">
			<a href="#sec-description">Class Overview</a>
													| <a href="#sec-var-summary">Property Summary</a> | <span class="disabled">Properties Detail</span>
															| <a href="#sec-method-summary">Method Summary</a> | <a href="#sec-methods">Methods Detail</a>
												</div>
		<div class="info-box-body">
			<a name="var$_applicationPrefix" id="$_applicationPrefix"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			static <span class="var-type">mixed</span>&nbsp;&nbsp;
			<span class="var-name">$_applicationPrefix</span>
			 = <span class="var-default"> ''</span>			<span class="smalllinenumber">[line <a href="../__filesource/fsource_Smithy__Loader.php.html#a32">32</a>]</span>
		</span>
	</div>

	<p align="center" class="short-description"><strong>The applications prefix.
</strong></p>
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
</table>
<br />


	
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="var$_pluginloader" id="$_pluginloader"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			static <span class="var-type">Zend_Loader_PluginLoader</span>&nbsp;&nbsp;
			<span class="var-name">$_pluginloader</span>
			 = <span class="var-default"> NULL</span>			<span class="smalllinenumber">[line <a href="../__filesource/fsource_Smithy__Loader.php.html#a27">27</a>]</span>
		</span>
	</div>

		<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
</table>
<br />


	
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
		</div>
	</div>

	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Class Overview</a>
																		| <a href="#sec-var-summary">Property Summary</a> | <a href="#sec-vars">Properties Detail</a>
																	| <a href="#sec-method-summary">Method Summary</a> | <span class="disabled">Methods Detail</span>
					</div>
		<div class="info-box-body">
			<a name='method_detail'></a>
<a name="methodautoload" id="autoload"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">static method autoload</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Smithy__Loader.php.html#a92">92</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>static void autoload(
mixed
$class&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Smithy_Loader::autoload()
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">mixed</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$class:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td>Zend_Loader::autoload()</td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodloadClass" id="loadClass"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">static method loadClass</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Smithy__Loader.php.html#a42">42</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>static void loadClass(
mixed
$class, [mixed
$dirs = NULL]&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Smithy_Loader::loadClass()
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">mixed</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$class:&nbsp;</span></td>
				<td>
							</td></tr>
					<tr><td class="indent">
				<span class="var-type">mixed</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$dirs:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>See:</strong>&nbsp;&nbsp;</td><td>Zend_Loader::loadClass()</td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodloadResource" id="loadResource"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">static method loadResource</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Smithy__Loader.php.html#a66">66</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>static string loadResource(
string
$resourceName, [string
$resourceType = ''], [
$module = null], string
$moduleName&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Loads a model resource.
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$resourceName:&nbsp;</span></td>
				<td>
				<span class="var-description"> The name of the resource without the</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$resourceType:&nbsp;</span></td>
				<td>
				<span class="var-description"> The type of the resource. Possible values:</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$moduleName:&nbsp;</span></td>
				<td>
				<span class="var-description"> The name of the module the resource is</span>			</td></tr>
					<tr><td class="indent">
				<span class="var-type"></span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$module:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Return:</strong>&nbsp;&nbsp;</td><td>The name of the loaded class.</td>
  </tr>
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />

<strong>Information Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Throws:</strong>&nbsp;&nbsp;</td><td>Zend_Loader_Exception If the resource is not found.</td>
  </tr>
</table>

		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="methodsetApplicationPrefix" id="setApplicationPrefix"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">static method setApplicationPrefix</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Smithy__Loader.php.html#a112">112</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>static void setApplicationPrefix(
string
$prefix&nbsp;
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Sets the application wide prefix.
</strong></p>

			<strong>Parameters:</strong><br />
			<table border="0" cellspacing="0" cellpadding="0">
					<tr><td class="indent">
				<span class="var-type">string</span>&nbsp;&nbsp;</td>
				<td>
				<span class="var-name">$prefix:&nbsp;</span></td>
				<td>
							</td></tr>
				</table>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>public</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="method_getCurrentPrefix" id="_getCurrentPrefix"><!-- --></a>
<div class="oddrow">

<div class="method-header">
	<span class="method-title">static method _getCurrentPrefix</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Smithy__Loader.php.html#a120">120</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>static string _getCurrentPrefix(
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	
	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>
<a name="method_getPluginLoader" id="_getPluginLoader"><!-- --></a>
<div class="evenrow">

<div class="method-header">
	<span class="method-title">static method _getPluginLoader</span>&nbsp;&nbsp;<span class="smalllinenumber">[line <a href="../__filesource/fsource_Smithy__Loader.php.html#a140">140</a>]</span>
</div>
<br />

	<div class="function">
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code-border">
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">&nbsp;
		<code>static Zend_Loader_PluginLoader _getPluginLoader(
)</code>
    </td></tr></table>
    </td></tr></table><br /></div>

	<p align="center" class="short-description"><strong>Returns with the pluginloader, with the apropiate prefixes and paths.
</strong></p>

	<br />
	<strong>API Tags:</strong><br />
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="indent"><strong>Access:</strong>&nbsp;&nbsp;</td><td>protected</td>
  </tr>
</table>
<br />


		
		<br />
	<div class="top">[ <a href="#top">Top</a> ]</div>
</div>

		</div>
	</div>


        <div class="credit">
		    <hr class="separator" />
		    Documentation generated on Sun, 25 Jan 2009 02:41:15 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.1</a>
	      </div>
      </td></tr></table>
    </td>
  </tr>
</table>

</body>
</html>